<?php
    if(!$this->session->userdata('logged_in')) {
        redirect('logout');
    }
?>
<div id="edit_profile_container">
    <?php 
        echo '<div id="message_container">'.$error.'</div>';
        echo form_open('authenticated/profile/'.$this->session->userdata('idno'), array('id' => 'edit_profile_form'));
        echo '<div id="edit_profile_wrapper">';
        echo form_label('ID Number', 'idno');
        echo form_input($idno).'<br/>';
        echo form_label('Name', 'comp_name');
        echo form_input($complete_name).'<br/>';
        echo form_password($old_pass).'<br/>';
        echo form_password($new_pass).'<br/>';
        echo form_password($conf_pass).'<span id="no_match" style="color:red; visibility:hidden">Password do not match.</span><br/>';
        echo form_submit($save);
        echo anchor('authenticated/posts', 'Cancel', 'id="btn_cancel"').'</div>';
        echo form_close();
    ?>
</div>